package com.kuang.service;

import com.kuang.dao.LogMapper;
import com.kuang.pojo.loginLog;

import java.util.Date;
import java.util.List;

public class LogServiceImpl implements LogService{
    public LogMapper getLogMapper() {
        return logMapper;
    }

    public void setLogMapper(LogMapper logMapper) {
        this.logMapper = logMapper;
    }

    private LogMapper logMapper;

    public int addLog(String username, String loginIp, Date loginTime) {
        return logMapper.addLog(username,loginIp,loginTime);
    }

    public int deleteLog(int id) {
        return logMapper.deleteLog(id);
    }

    public List<loginLog> queryLoginLog() {

        return logMapper.queryLoginLog();
    }
}
